#define _CRT_SECURE_NO_WARNINGS
#include "shared_ptr.h"
#include <vector>
void text1()
{
	Shared_ptr<int>sptr1(new int(1));

	Shared_ptr<int>sptr2(sptr1);

	Shared_ptr<int>sptr3(sptr2);

	Shared_ptr<int>sptr4 = sptr1;

	Shared_ptr<int>sptr5(new int(7));

	sptr4 = sptr5;

	sptr3 = sptr4;

}


int main()
{
	//vector<int>
	//Shared_ptr<string>sptr1(new string("123"));
	//text1();
	Shared_ptr<int> sptra(new int[6] {1, 2, 3, 4, 5, 6}, [](int* x) {delete[] x; });
	return 0;
}